<?php
require("model/user.php");
class GetAllUser
{
	private $object;
	public function __construct($from)
	{
		$this->object= new User($from);
		//echo "FFF";
	}
	public function getName()
	{
		return $this->object->getUser();
	}
	public function getType()
	{
		switch($this->object->getType())
		{
			case 0:
			return "顾客";break;
			case 1:
			return "租客";break;
		}
	}
	
}
/*
$a = new GetAllUser("o12Ils0_VYcq3339QybKPfNs2Gvs");
echo $a->getName();
*/
?>
